<?php
class SocialLikeBox extends iPortlet
{
	public $facebox ='
	<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fphuong.nguyen.itvn&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; float: left;height:21px;" allowTransparency="true"></iframe>
	';
	
	public $googleplus = "
	<g:plusone size=\"medium\"></g:plusone>
	
	<script type=\"text/javascript\">
	  (function() {
	    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
	    po.src = 'https://apis.google.com/js/plusone.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
	  })();
	</script>
	";
	public function init()
	{
		parent::init();
	}
	public function renderContent()
	{
		echo $this->facebox;
		echo $this->googleplus;
	}
}